class AdrenalineSyringeWFire extends SRKFMeleeFire;

simulated function Timer()
{
	local Actor HitActor;
	local vector StartTrace, EndTrace, HitLocation, HitNormal;
	local rotator PointRot;
//	local WTFEquipLethalInjectionProj p;
	local KFPlayerReplicationInfo KFPRI;

	if( !KFWeapon(Weapon).bNoHit )
	{
		StartTrace = Instigator.Location + Instigator.EyePosition();

		if( Instigator.Controller!=None && PlayerController(Instigator.Controller)==None && 
			Instigator.Controller.Enemy!=None )
		{
			PointRot = rotator(Instigator.Controller.Enemy.Location-StartTrace); // Give aimbot for bots.
		}
		else
		{
			PointRot = Instigator.GetViewRotation();
		}

		EndTrace = StartTrace + vector(PointRot)*weaponRange;
		HitActor = Instigator.Trace( HitLocation, HitNormal, EndTrace, StartTrace, true);

		if (HitActor!=None)
		{
			ImpactShakeView();

			if( Level.NetMode==NM_Client )
			{
				return;
			}

			if( (Pawn(HitActor)!=none) )
			{
				Pawn(HitActor).Spawn(Class'AdrenalineWCard');
				Spawn(class'PerksSimHostOrg.AcidGunWEmitter',,,HitLocation /*+ HitNormal*20*/,rotator(HitNormal));
				//KFHumanPawn(Instigator).VeterancyChanged();
			}

			if( (KFMonster(HitActor)!=none) )
			{
				//p = Spawn(Class'WTFEquipLethalInjectionProj', instigator,, HitLocation, PointRot);
				//p.Stick(HitActor,HitLocation);
				
				//Slow Poison is for Medics only
				KFPRI = KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo);

				if(MeleeHitSounds.Length > 0)
				{
					Weapon.PlaySound(MeleeHitSounds[Rand(MeleeHitSounds.length)],SLOT_None,MeleeHitVolume,,,,false);
				}
			}
		}
	}
}

defaultproperties
{
     DamagedelayMin=0.360000
     DamagedelayMax=0.360000
     FireRate=2.800000
}
